//
//  DXUserDefaultHelper.m
//  iDxyer
//
//  Created by sun black on 11-11-25.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import "WCUserDefaultHelper.h"

@implementation WCUserDefaultHelper


+(void)saveUserDefaultWithString:(NSString *)value forKey:(NSString*)key{
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setValue:value forKey:key];
    [userDefault synchronize];
}
+(void)saveUserDefaultWithObject:(NSObject *)obj forKey:(NSString*)key{
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setValue:obj forKey:key];
    [userDefault synchronize];}
+(id)objectValueForKey:(NSString*)key{
    NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
    return [userDefaults objectForKey:key];
}

@end
